<?php

$date = array(

	array(

		'name'=>'zhangsan',
		'age'=>'28'

		),
	array(

		'name'=>'lisi',
		'age'=>'29'

		),

	);

$db = require 'db.php';

$db[] = $date[0];
$db[] = $date[1];

$str = "<?php \nreturn ".var_export($db,true).';';

file_put_contents('db.php', $str);

?>